package com.wzu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

@TableName("insured")
public class Insured implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id; // ID
    private String insuredName; // 姓名
    private String caardId; // 身份证号
    private String gender; // 性别
    private String nation; // 民族
    private String address; // 地址
    private String phone; // 联系电话

    public Insured() {}
    public Insured(Integer id, String insuredName, String caardId, String gender, String nation, String address, String phone) {
        this.id = id;
        this.insuredName = insuredName;
        this.caardId = caardId;
        this.gender = gender;
        this.nation = nation;
        this.address = address;
        this.phone = phone;
    }
    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }
    public String getInsuredName() { return insuredName; }
    public void setInsuredName(String insuredName) { this.insuredName = insuredName; }
    public String getCaardId() { return caardId; }
    public void setCaardId(String caardId) { this.caardId = caardId; }
    public String getGender() { return gender; }
    public void setGender(String gender) { this.gender = gender; }
    public String getNation() { return nation; }
    public void setNation(String nation) { this.nation = nation; }
    public String getAddress() { return address; }
    public void setAddress(String address) { this.address = address; }
    public String getPhone() { return phone; }
    public void setPhone(String phone) { this.phone = phone; }
    @Override
    public String toString() {
        return "Insured{" +
                "id=" + id +
                ", insuredName='" + insuredName + '\'' +
                ", caardId='" + caardId + '\'' +
                ", gender='" + gender + '\'' +
                ", nation='" + nation + '\'' +
                ", address='" + address + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }
} 